﻿using JESAI.Demo.Net45.Model;
using JESAI.HtmlTemplate.Pdf.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace JESAI.Demo.Net45.Controllers
{
    public class HomeController : BaseComtroller
    {
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult GetPDF()
        {
            var m = new Student()
            {
                Name = "111111",
                Address = "3333333",
                Age = 22,
                Sex = "男",
                Tel = "19927352816",
                Des = "2222222222222222222"
            };
            // return View(m);
            // return PDFSignResult<Student>(m,(pdf)=> { return pdf; });
            return PDFSignRedirectResult<Student>(m, (pdf) => {

                return pdf;// SignLicense.Sign(pdf);
            }, "http://localhost/HR.Registration.Webmx/TrustStamp/Stamper?file=http://localhost/FtpWeb", true, fileName: "SLHZ\\" , "D:\\FtpServer");
        }
        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}